package com.seven.sso.feign;

import com.seven.enity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户远程调用
 */
@FeignClient(value = "education-system")
public interface UserFeign {
    @GetMapping("/system/user/getName/{name}")
    public User getByName(@PathVariable String name);
}
